//
//  ZShare.h
//  jipin
//
//  Created by lcb on 5/12/15.
//  Copyright (c) 2015 liuchengbin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "NSString+Extensions.h"

@interface ZShare : NSObject
{
    
}
@property(nonatomic,strong)NSMutableArray *imagesArray;
@property(nonatomic,strong)NSMutableArray *HotTagArray;//热门搜索数据
@property(nonatomic,strong)NSMutableArray *IndexTagArray;//首页标签数据
@property(nonatomic,strong)NSMutableArray *buyUrlArray;//首页标签数据

@property(nonatomic,strong)NSArray *searchParamsArray;
@property(nonatomic,strong)NSDictionary *suggParamsArray;
@property(nonatomic,strong)NSDictionary *defaultAddress;
@property(nonatomic,strong)NSMutableArray *addressInfoDictionary;
@property(nonatomic,strong)NSMutableArray *hotmail;
@property(nonatomic,strong)NSMutableArray *hotwords;
@property(nonatomic,strong)NSMutableArray *menuList;
@property(nonatomic,assign)int  lineCount;
@property(nonatomic,strong)NSString*  api_key;
@property(nonatomic,strong)NSString*  sharecode_key; //分享码
@property(nonatomic,strong)NSMutableArray*  sharelist_key; //分享码

@property(nonatomic,strong)NSString*  zhekouquan;//折扣券码
@property(nonatomic,strong)NSDictionary *ipAddress;
@property(nonatomic,strong)NSString*  refreshHeader;//顶部提示文案
@property(nonatomic,strong)NSString*  refreshFooter;//底部提示文案

//
@property(nonatomic,strong)NSMutableArray*  recommendChannel; //推荐的
@property(nonatomic,strong)NSMutableArray*  subscribeChannel; //订阅的
@property(nonatomic,strong)NSMutableArray*  manuallySubscribe; //手动订阅的
@property(nonatomic,assign)CGFloat  sizeY;
+(NSMutableArray*)sortArray:(NSMutableArray*)tempArray;

+ (instancetype)sharedInstance;
-(void)initsearchparams;
-(void)initdanpinpublicparams:(NSString*)source;
+(NSString*)DataTOjsonString:(id)object;
+(NSString*)base64:(NSString*)str;
+ (NSString *)md5:(NSString *)_str;
//将NSDate按yyyy-MM-dd HH:mm:ss格式时间输出
+(NSString*)nsdateToString:(NSDate *)date;
+(UIImage *) FICDSquareImageFromImage:(UIImage*)image;//crop picture
-(NSString* )getUUID;
-(NSString*)pushToken;
-(NSString*)getUserId;
-(NSString*)getUserNickname;

-(NSDictionary*)userInfo;
-(void)setUserInfo:(NSDictionary*)user;
-(BOOL)isLogin;
-(void)cleanCache;
-(NSString*)screenSize;
-(NSString*)osVer;
-(NSString*)appVer;
-(NSString*)systemModel;
-(void)initUserInfo:(NSDictionary*)resultObject;
+ (void)showAnimationView:(UIView *)view center:(CGPoint)center;
+ (void)hiddenAnimationView:(UIView *)view;
+ (void)hiddenAnimationView:(UIView *)view text:(NSString*)text;
+ (void)showNoDataView:(UIView *)view center:(CGPoint)center;
//网络异常显示
+ (void) showWifiView:(UIView *)view center:(CGPoint)center;
+ (void) hiddenWifiView:(UIView *)view;
+ (void) moveUp: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andLength:(float) length;
+ (void) moveDown: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andLength:(float) length;
+ (UIView *) loadingView;
+(NSString*)publicParams;
+(UIView *)footerView:(NSString*)msg;
@end
